﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OperatorWorkRptList.aspx.cs" Inherits="WMS6.Web.Analytics.OperatorWorkRptList" meta:resourcekey="Page" %>

<%@ PreviousPageType VirtualPath="~/Analytics/OperatorWorkRptQuery.aspx" %>
<%@ Register Src="../UserControls/Pager.ascx" TagName="Pager" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>OperatorWorkRptList</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />

    <script src="../Js/jquery.js" type="text/javascript"></script>

    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>

    <script src="../Js/util.js" type="text/javascript"></script>

    <script src="../Js/InitPage.js" type="text/javascript"></script>

    <script src="../Js/checkbox.js" type="text/javascript"></script>

    <script type="text/javascript">

        window.onload = function() {
            initListPage();
        }

        function returnSearch() {
            var from = document.getElementById("hdnFrom").value;
            if (from != "") {
                window.location.href = "OperatorWorkRptQuery.aspx";
            }
            else {
                window.history.go(-1);
            }
        }

        //显示 报表 DIV
        function showReport() {
            var pos = getElementPos("htmlbtnReport");
            document.getElementById("reportDiv").style.top = pos.y + 17;
            document.getElementById("reportDiv").style.left = pos.x;
            document.getElementById("hiddenReportFlag").value = '1';
        }

        //隐藏 报表 DIV
        function hiddenReportDiv() {
            var flag = document.getElementById("hiddenReportFlag").value
            if (flag == "1") {
                document.getElementById("reportDiv").style.display = "block";
                document.getElementById("hiddenReportFlag").value = '0';
            }
            else {
                document.getElementById("reportDiv").style.display = "none";
            }
        }

        //弹出 打印 的窗口
        function popPrintEmployeeWork() {
            window.open('../Common/PrintReport.aspx?rtype=PRINTOPERATORWORK&pa=' + escape(document.getElementById("hdnPara").value), 'PrintWindow', 'width=860,height=610,top=50,left=50,toolbar=no,menubar=no,scrollbars=yes, resizable=yes,location=no,status=no');
        }
    </script>

</head>
<body>
    <form id="F15732" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div id="div_List_top">
            <table>
                <tr>
                    <td valign="bottom">
                        <asp:Label ID="lblOperatorWorkRptList" runat="server" CssClass="label_header" Text="制单员工作统计报告列表"
                            meta:resourcekey="lblOperatorWorkRptList"></asp:Label>
                    </td>
                    <td>
                        <asp:Button ID="btnRefresh" runat="server" CssClass="button" Enabled="False" Text="<%$ Resources:ButtonResource,btnRefresh %>"
                            OnClick="btnRefresh_Click" meta:resourcekey="btnRefreshResource1" />
                    </td>
                    <td>
                        <input id="htmlbtnReport" type="button" runat="server" value="<%$Resources:ButtonResource,btnReport%>"
                            class="button" onclick="showReport();" />
                    </td>
                </tr>
            </table>
        </div>
        <div class="blank8">
        </div>
        <asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>
                <div id="div_List">
                    <div id="div_List_msg">
                        <asp:Label ID="lblMsg" runat="server" CssClass="label_message" meta:resourcekey="lblMsg"></asp:Label>
                    </div>
                    <asp:GridView ID="gvOperatorWork" runat="server" AutoGenerateColumns="False" AllowSorting="True"
                        CssClass="gridview" OnRowDataBound="gvOperatorWork_RowDataBound" 
                        OnSorting="gvOperatorWork_Sorting" PageSize="20" Width="800px" 
                        OnInit="gvOperatorWork_Init" meta:resourcekey="gvOperatorWork">
                        <FooterStyle CssClass="GridViewFooterStyle" />
                        <RowStyle CssClass="GridViewRowStyle" />
                        <HeaderStyle CssClass="GridViewHeaderStyle" />
                        <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                        <Columns>
                            <asp:BoundField HeaderText="序号" FooterText="序号" meta:resourcekey="No">
                                <ItemStyle CssClass="GridViewRowWidth_40" />
                            </asp:BoundField>
                            <asp:TemplateField meta:resourcekey="TemplateFieldResource1">
                                <HeaderTemplate>
                                    <img src="../Images/gvSettingpic.gif" id="img01" class="gvSettingImg" onclick="gvUserSetting('15732','gvOperatorWork');"
                                        onmouseover="showGVUserSettingAlt(this);" alt="customize list" />
                                    <asp:CheckBox ID="CheckBox1" runat="server" onclick="selectAll(this,'gvOperatorWork');"
                                        meta:resourcekey="CheckBox1" />
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="chbSelect" runat="server" meta:resourcekey="chbSelect" />
                                </ItemTemplate>
                                <FooterTemplate>
                                    <asp:CheckBox ID="CheckBox2" runat="server" onclick="selectAll(this,'gvOperatorWork');"
                                        meta:resourcekey="CheckBox2" />
                                </FooterTemplate>
                                <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="USER_NAME" HeaderText="制单员" FooterText="制单员" SortExpression="USER_NAME" meta:resourcekey="USER_NAME">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="RECEIPTCOUNT" HeaderText="入库单数" FooterText="入库单数" SortExpression="RECEIPTCOUNT"
                                meta:resourcekey="RECEIPTCOUNT">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="ORDERCOUNT" HeaderText="出库单数" FooterText="出库单数" SortExpression="ORDERCOUNT"
                                meta:resourcekey="ORDERCOUNT">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="MOVEMENTCOUNT" HeaderText="移动单数" FooterText="移动单数" SortExpression="MOVEMENTCOUNT"
                                meta:resourcekey="MOVEMENTCOUNT">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="TOTALCOUNT" HeaderText="总单数" FooterText="总单数" SortExpression="TOTALCOUNT"
                                meta:resourcekey="TOTALCOUNT">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="备注" FooterText="备注" meta:resourcekey="Remark">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                        </Columns>
                    </asp:GridView>
                </div>
                <div id="reportDiv" style="background-color: #FFFFFF; position: absolute; display: none;">
                    <table width="120" border="0" cellspacing="0" cellpadding="0" id="divcontent_menu2">
                        <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                            <td class="line" id="tdlnkbtnPrintOperatorWork" runat="server">
                                <asp:LinkButton ID="lnkbtnPrintOperatorWork" runat="server" Text="制单员统计报告" OnClick="lnkbtnPrintOperatorWork_Click"  meta:resourcekey="lnkbtnPrintOperatorWork"></asp:LinkButton>
                            </td>
                        </tr>
                    </table>
                </div>
                <div id="div_pager">
                    <uc1:Pager ID="PagerFooter" runat="server" OnFirst="btnFirst_Click" OnPrevious="btnPrevious_Click"
                        OnNext="btnNext_Click" OnLast="btnLast_Click" OnGoTo="GoTo_Click" />
                </div>
                <input type="hidden" runat="server" id="hdnFrom" >
                    <input id="hdnPara" runat="server" type="hidden"></input>
                        <input id="hdnActionID" runat="server" type="hidden"></input>
                            <input id="hiddenFlag" type="hidden" />
                            <input id="hiddenReportFlag" type="hidden" />
                        </input>
                    </input>
                </input>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="btnList" EventName="Click" />
                <asp:AsyncPostBackTrigger ControlID="btnRefresh" EventName="Click" />
            </Triggers>
        </asp:UpdatePanel>
        <div id="div_List_bottom">
            <table>
                <tr>
                    <td>
                        <asp:Button ID="btnSearch" runat="server" Text="<%$ Resources:ButtonResource,btnNewSearch %>"
                            CssClass="button" Enabled="False" 
                            
                            OnClientClick="javascript:window.location.href='OperatorWorkRptQuery.aspx';return false;" meta:resourcekey="btnSearchResource1" 
                            />
                    </td>
                    <td>
                        <asp:Button ID="btnReSearch" runat="server" Text="<%$ Resources:ButtonResource,btnReSearch %>"
                            CssClass="button" Enabled="False" 
                            OnClientClick="javascript:returnSearch();return false;" meta:resourcekey="btnReSearchResource1" 
                            />
                    </td>
                    <td>
                        <asp:Button ID="btnList" runat="server" Text="<%$ Resources:ButtonResource,btnList %>"
                            CssClass="button" Enabled="False" OnClick="btnList_Click" meta:resourcekey="btnListResource1" 
                            />
                    </td>
                    <td>
                        <asp:Button ID="btnExport" runat="server" Text="<%$ Resources:ButtonResource,btnExport %>"
                            CssClass="button" Enabled="False" OnClick="btnExport_Click" meta:resourcekey="btnExportResource1" 
                            />
                    </td>
                </tr>
            </table>
        </div>
        
    </div>
    </form>
</body>
</html>

<script language="javascript" type="text/javascript" event="onclick" for="document">
		<!--
		    hiddenReportDiv();
		//-->
</script>

